<!DOCTYPE html>
<html>
<head>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
    <meta charset="UTF-8">
    <title></title>
    {% include 'template/baseCss.volt' %}
    <link href="/css/vendor/add-drone.less" rel="stylesheet/less" type="text/css">
    <script src="/js/less.min.js"></script>
</head>
<body>
<main>
    <div class="title-bar">
        <label class="server-id">{{ title }}:{{ titleKey }} </label>
        <div style="float: right;" class="button {% block hiddenBack %}{% endblock %}" onClick="DetailEditor.goback()">
            <label class="btn-text">返回</label>
            <img class="del" src="/images/back.png">
        </div>
        <div style="float: right;" class="button {% block hiddenDelete %}{% endblock %}" onClick="DetailEditor.preActionDelete()">
            <label class="btn-text">删除</label>
            <img class="del" src="/images/delete.svg">
        </div>

        <div style="float: right;" class="button {% block hiddenEdit %}{% endblock %}" onClick="DetailEditor.preEdit()">
            <label id="btn-edit" class="btn-text">编辑</label>
            <img src="/images/edit.svg">
        </div>
    </div>
    <div id="info-wrap">
        {% block mainContent %}{% endblock %}
    </div>
    <p id="save-btn" class="button" style="visibility: hidden" onClick="DetailEditor.preUpdate()">保 存</p>
</main>

<div style="display:none">
    <div id="attrList">{{ attrList }}</div>
    <div id="pageData">{{ pageData }}</div>
    <div id="pageKey">{{ pageKey }}</div>
    <div id="pageKeyName">{{ pageKeyName }}</div>
    <div id="actionDelete">{{ actionDelete }}</div>
</div>
</body>

{% include 'template/baseJs.volt' %}
<script src="/js/vendor/data-detail.js"></script>
{% block jscontent %}{% endblock %}

</html>